package com.calvin.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.calvin.springcloud.base.ResponseResult;

import cn.hutool.core.util.RandomUtil;

@RestController
@RequestMapping("sms")
public class SmsController {
	
	@GetMapping("sendAuthCode")
	public ResponseResult<Object> sendAuthCode(){
		String authCode = String.valueOf(RandomUtil.randomInt(1000, 9999));
		return new ResponseResult<Object>().success(authCode);
	}

}
